<include file="Public:header" />
<script>
$(document).ready(function(e) {
    $('.showcurimg').each(function(index, element) {
        $(this).click(function(e) {
            $(this).find('img.img').show();
        });
		$(this).mouseleave(function(e) {
            $(this).find('img.img').hide();
        });
    });
});

function confirmaff(){
	if(!confirm('您确认要这样操作吗？')){return false;}
	var order_id = new Array();
	var attr = new Array();
	var product_id = new Array();
	$("input[name='order_id[]']").each(function(index, element) {
         if($(this).prop('checked') == true){
			order_id.push($(this).val()); 
			attr.push($("input[name='attr[]']").eq(index).val());
			product_id.push($("input[name='product_id[]']").eq(index).val());
		 }
    });
	data = {'order_id':order_id,'attr':attr,'product_id':product_id};
	if(order_id.length > 0){
	$.post('{:U('confirm')}', data, function(ret){
		success(ret.info);
	}, 'json');
	}else{
		error('请选择一个或多个记录后点击确认！');
	}
	
}
</script>	
<div class="container main"> <include file="Public:left" />
  <div class="w790">
    <div class="h">
    <a href="{:U('points_list')}" class="btn btn-info"><i class="glyphicon glyphicon-equalizer"></i> 积分明细</a>
      <form action="{:U('index')}" method="get" class="fr form-inline">      
      
      
      
      
      
      
      
      
     
      
        
        <input type="hidden" name="pagesize" value="{$pagesize}" />
      
      
      
        <input type="hidden" name="pagesize" value="{$pagesize}" />
        <input type="text" name="keywords" placeholder="输入订会员id搜索" class="form-control" value="" />
        <button type="submit" class="btn btn-default">搜索</button>
          
      </form>
      
   
      </div>
    
    <div class="table_">
      <table class="table table-bordered" width="100%" border="0" cellspacing="0" cellpadding="0">
        <thead>
          <tr>
            <td width="17%" align="center">ID</td>
             <td align="center">用户</td>
           <td align="center">待返总积分</td>
         
           <td align="center">已返积分</td>
           <td align="center">可用积分余额</td>
          
           <td align="center">积分明细</td>

  
          
          </tr>
        </thead>
      
        <volist name="list" id="vo">
          <tr class="data_list">
          <td align="center" rowspan="2" >
          
          <!-- 完成显示分成按钮 -->
     
          
         {$vo.id}
          

          
          <!-- 完成显示分成按钮 -->
          
          </td>
            <td align="center" rowspan="2" >{$vo.nickname}</td>
          
            <td align="center"  rowspan="2">
                       
            {$vo.total|round=2}</td>
               
           
          
              
          </tr>
          <tr class="data_list">
         
 
                    <td align="center" >通用：{$vo.log_offline|round=2}</td> <td align="center" >通用：{$vo.offline|round=2}</td>
                    <td align="center" rowspan="2" ><a href="{:U('points_list',array('member_id'=>$vo['id']))}">查看</a></td> 
                    </tr>
                </volist>
      </table>
      <div class="pages">
       <!--  <div class="controlList fl"><a href="javascript:void(0);" class="btn btn-primary btn-sm" onclick="sall();"><i class="glyphicon glyphicon-check"></i> 全选/反选</a> <a href="javascript:void(0);" class="btn btn-primary btn-sm" onclick="rall();"><i class="glyphicon glyphicon-unchecked"></i> 全不选</a>
        
       
        
    </div>--> 
        <form class="fr" style="display:inline;" id="pagesize" action="" method="get">
         <label class="form-inline"> 每页
          <select name="pagesize" onchange="document.getElementById('pagesize').submit();" class="form-control">
            <option 
            <eq name="pagesize" value="10">selected="selected"</eq>
             value="10">10
            </option>
            <option 
            <eq name="pagesize" value="20">selected="selected"</eq>
             value="20">20
            </option>
            <option 
            <eq name="pagesize" value="30">selected="selected"</eq>
             value="30">30
            </option>
            <option 
            <eq name="pagesize" value="50">selected="selected"</eq>
             value="50">50
            </option>
            <option 
            <eq name="pagesize" value="100">selected="selected"</eq>
             value="100">100
            </option>
            <option 
            <eq name="pagesize" value="500">selected="selected"</eq>
             value="500">500
            </option>
          </select>
          条</label>
          <input type="hidden" name="category_id" value="{$category_id}" />
          <input type="hidden" name="keywords" value="{$keywords}" />
        </form>
        <div class="fr">{$pages}</div>
      </div>
    </div>
  </div>
  <div class="clear"></div>
</div>
<include file="Public:footer" />